<template>
  <div>
    <h2>User</h2>
    <h3>{{ $route.params.username }}</h3>
  </div>
</template>

<script>
import { useRoute } from "vue-router";

export default {
  created() {
    console.log(this.$route.params.username);
  },
  setup() {
    const route = useRoute();
    console.log(route.params.username);
  },
};
</script>

<style scoped></style>
